package com.loong;


import com.cronutils.builder.CronBuilder;

import java.util.Date;

/**
 * Created by 梁浩峰 on 2016/12/5 15:41.
 */
public class CronTest {
    public static void main(String[] args) {
        Date now = new Date();
        System.out.println(CronDateUtils.getCron(now));

        String cron = "20 28 17 02 08 ? 2016";

        Date cronDate = CronDateUtils.getDate(cron);
        System.out.println("===================");
        System.out.println(cronDate.toString());
    }
}
